package fun.cyhgraph.service;

import com.baomidou.mybatisplus.extension.service.IService;
import fun.cyhgraph.model.dto.DishDTO;
import fun.cyhgraph.model.dto.DishPageDTO;
import fun.cyhgraph.model.entity.Dish;
import fun.cyhgraph.model.entity.Setmeal;
import fun.cyhgraph.model.merchantDto.DishMerchantDTO;
import fun.cyhgraph.result.PageResult;
import fun.cyhgraph.model.vo.DishVO;

import java.util.List;

public interface DishService extends IService<Dish> {
    void addDishWithFlavor(DishDTO dishDTO , Integer merchantId);

    PageResult getPageList(DishPageDTO dishPageDTO , Integer merchantId);

    DishVO getDishWithFlavorById(Integer id , Integer merchantId);
    DishVO getDishWithFlavorById1(Integer id );

    void updateDishWithFlavor(DishMerchantDTO dishDTO);

    void deleteBatch(List<Integer> ids , Integer merchantId);

    void onOff(Integer id , Integer merchantId);

    List<DishVO> getDishesWithFlavorById(Dish dish);
    List<DishVO> getDishesWithFlavorById1(Dish dish);
}
